package com.ruoyi.system.mapper.process;


import com.ruoyi.system.domain.process.ProcessUnusualInventory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 异常和加工库存关联Mapper接口
 * 
 * @author ljx
 * @date 2020-07-14
 */
public interface ProcessUnusualInventoryMapper 
{
    /**
     * 查询异常和加工库存关联
     * 
     * @param id 异常和加工库存关联ID
     * @return 异常和加工库存关联
     */
    public ProcessUnusualInventory selectProcessUnusualInventoryById(Long id);

    /**
     * 查询异常和加工库存关联列表
     * 
     * @param processUnusualInventory 异常和加工库存关联
     * @return 异常和加工库存关联集合
     */
    public List<ProcessUnusualInventory> selectProcessUnusualInventoryList(ProcessUnusualInventory processUnusualInventory);

    /**
     * 新增异常和加工库存关联
     * 
     * @param processUnusualInventory 异常和加工库存关联
     * @return 结果
     */
    public int insertProcessUnusualInventory(ProcessUnusualInventory processUnusualInventory);
    int insertList(@Param("unusualId") Long unusualId,@Param("inventoryIds") List<String> inventoryIds);
    /**
     * 修改异常和加工库存关联
     * 
     * @param processUnusualInventory 异常和加工库存关联
     * @return 结果
     */
    public int updateProcessUnusualInventory(ProcessUnusualInventory processUnusualInventory);

    /**
     * 删除异常和加工库存关联
     * 
     * @param id 异常和加工库存关联ID
     * @return 结果
     */
    public int deleteProcessUnusualInventoryById(Long id);

    /**
     * 批量删除异常和加工库存关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteProcessUnusualInventoryByIds(String[] ids);
    int deleteUnusualInventoryByUnusualIds(String[] ids);
}
